-- card: 3055 from stack: in.0 (US) -- bmap block id: 3273 -- flags: 0000 -- background id: 2661 -- name: -- part 1 (field) -- low flags: 01 -- high flags: 0007 -- rect: left=69 top=68 right=252 bottom=434 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: -- part 25 (button) -- low flags: 00 -- high flags: A003 -- rect: left=201 top=278 right=316 bottom=346 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: IsFile ----- HyperTalk script ----- on mouseUp ask "Name or PathName :" if it ≠ empty then answer IsFile(it) end mouseUp -- part contents for card part 1 ----- text ----- IsFile 1.0 © Frédéric RINALDI DESCRIPTION ------------ IsFile is a XFCN allowing to test the existence of a file on a volume. SYNTAX ------- IsFile () PARAMETERS ------------ The parameter can be a single name or whole pathname. If just a single name is supplied, the file is assumed to be in the same folder than the current stack. Using "!" and "?" as parameter will return an online help (resp. copyright and syntax). USING ----- The XFCN returns "true" if the file exists, "false" if not. If an error occurs, it can return : "Error : Volume not found" "Error : Bad Name" "Error : Directory not found" "Error : I/O Error" "Error : Unknown #xx" "Error : Missing parameter" --------------------------------------------------------------------- This (these) external(s) is (are) FreeWare,allowing unlimited use in any non-commercial stack. You just need in this case to mention the author's name and copyright in your stack. Any commercial use must be licensed and aknowledged by the author. © F. Rinaldi - 1989,1990 AppleLink: RINALDI1 CalvaCom : FR10 Compuserve : 71170,2111